package com.smarthospital.dao.mapper;

import com.smarthospital.entity.pojo.InquiryOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InquiryOrderDao {
    int insert(@Param("pojo") InquiryOrder pojo);

    int insertSelective(@Param("pojo") InquiryOrder pojo);

    int insertList(@Param("pojos") List<InquiryOrder> pojo);

    int update(@Param("pojo") InquiryOrder pojo);

    List<InquiryOrder> queryOrder(@Param("pojo")InquiryOrder pojo);

    InquiryOrder selectById(Long id);

    List<InquiryOrder> queryOrderWithDoIds(@Param("doIds")List<Long> doIds);

    int closeOrder(@Param("id")String id);

    List<InquiryOrder> queryByMajor(@Param("major")String major, @Param("status")Integer status);

    InquiryOrder queryById(Long id);
}
